<?php
session_start();
if(empty($_SESSION['admin_id'])) {	
	header("Location: index.php");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Office Suppliers</title>
<link rel="stylesheet" href="css/screen.css" type="text/css" media="screen" title="default" />
<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.17/themes/base/jquery-ui.css" type="text/css" media="all" />
<link rel="stylesheet" href="css/busybox.css" type="text/css"/>
<link rel="stylesheet" href="css/jqpopup.css" type="text/css"/>
<link rel="stylesheet" href="css/jquery-ui.css" type="text/css"/>
<link rel="stylesheet" href="css/jquery.ui.core.css" type="text/css"/>
<link rel="stylesheet" href="css/jquery.dataTables.css" type="text/css"/>

<script language="javascript" type="text/javascript" src="js/jquery-1.4.1.min.js"></script>
<script charset="utf-8" type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.16/jquery-ui.min.js" id="js-jquery15"></script>
<script language="javascritp" type="text/javascript" src="js/jquery.pngFix.pack.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.busybox.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.jqpopup.min.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.bgiframe.min.js"></script>
<script language="javascript" type="text/javascript" src="js/jqDnR.min.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.dataTables.min.js"></script>
<script language="javascritp" type="text/javascript" src="js/ddtabmenu.js"></script>
<script language="javascritp" type="text/javascript" src="js/jquery.ui.core.js"></script>
<script language="javascritp" type="text/javascript" src="js/jquery.ui.widget.js"></script>
<script language="javascritp" type="text/javascript" src="js/jquery.ui.mouse.js"></script>
<script language="javascritp" type="text/javascript" src="js/jquery.ui.sortable.js"></script>

<link rel="stylesheet" type="text/css" href="css/solidblocksmenu.css" />

<script language="javascritp" type="text/javascript">
	$(document).ready(function(){
	$(document).pngFix( );
	});
</script>
<script type="text/javascript">
ddtabmenu.definemenu("ddtabs3", 0) //initialize Tab Menu #3 with 2nd tab selected
</script>
<link href="css/upload.css" rel="stylesheet" type="text/css" /> 
<?php include "js/script.js.php"; ?>

</head>
<body> 
<div id="page-top-outer">    

<!-- Start: page-top -->
<div id="page-top">

	<!-- start logo -->
	<div id="logo">
	<a href=""><!--<img src="images/shared/logo.png" width="156" height="40" alt="" />--></a>
	</div>
	<!-- end logo -->
	
	<!--  start top-search -->
	<div id="top-search">
		<table border="0" cellpadding="0" cellspacing="0">
		<tr>
		<td><input type="text" value="Search" onblur="if (this.value=='') { this.value='Search'; }" onfocus="if (this.value=='Search') { this.value=''; }" class="top-search-inp" /></td>
		<td>
		 
		<select  class="styledselect">
			<option value="">All</option>
			<option value="">Products</option>
			<option value="">Categories</option>
			<option value="">Clients</option>
			<option value="">News</option>
		</select> 
		 
		</td>
		<td>
		<input type="image" src="images/shared/top_search_btn.gif"  />
		</td>
		</tr>
		</table>
	</div>
 	<!--  end top-search -->
 	<div class="clear"></div>

</div>
<!-- End: page-top -->

</div>
<!-- End: page-top-outer -->
	
<div class="clear">&nbsp;</div>
 
<!--  start nav-outer-repeat................................................................................................. START -->
<div class="nav-outer-repeat"> 
<!--  start nav-outer -->
<div class="nav-outer"> 

		<!-- start nav-right -->
		<div id="nav-right">
		
			<div class="nav-divider">&nbsp;</div>
			<div class="showhide-account">Welcome Admin User</div>
			<div class="nav-divider">&nbsp;</div>
			<div class="showhide-logout"><a href="index.php?task=<?php echo base64_encode('logout'); ?>" id="logout">logout</a></div>
			<div class="clear">&nbsp;</div>
		
			<!--  start account-content -->	
			<div class="account-content">
			<div class="account-drop-inner">
				<a href="" id="acc-settings">Settings</a>
				<div class="clear">&nbsp;</div>
				<div class="acc-line">&nbsp;</div>
				<a href="" id="acc-details">Personal details </a>
				<div class="clear">&nbsp;</div>
				<div class="acc-line">&nbsp;</div>
				<a href="" id="acc-project">Project details</a>
				<div class="clear">&nbsp;</div>
				<div class="acc-line">&nbsp;</div>
				<a href="" id="acc-inbox">Inbox</a>
				<div class="clear">&nbsp;</div>
				<div class="acc-line">&nbsp;</div>
				<a href="" id="acc-stats">Statistics</a> 
			</div>
			</div>
			<!--  end account-content -->
		
		</div>
		<!-- end nav-right -->


		<!--  start nav -->
		<div class="nav">
		<div class="table">
		
		<ul class="current"><li><img src="images/icons/home.png" onclick="location.href='adminview.php'" class="cursor" /></li>
		<!--[if lte IE 6]><table><tr><td><![endif]-->
		<!--<div class="select_sub">
			<ul class="sub">
				<li></li>
				
			</ul>
		</div>-->
		<!--[if lte IE 6]></td></tr></table></a><![endif]-->
		</ul>
		
		<div class="clear"></div>
		</div>
		
		<!--  start nav -->
	</div>
	<div class="solidblockmenu" id="ddtabs3">
			<ul>
				<li><a href="adminview.php" class="">Home</a></li>
                                <li><a href="javascript: void(0);" onclick="loadPage('product/homepageproduct')" class="">Hom page products</a></li>
				<li><a href="javascript: void(0);" onclick="loadPage('category/index')" class="">Category</a></li>
				<li><a href="javascript: void(0);" onclick="loadPage('product/index')" class="">Products</a></li>
				<li><a href="javascript: void(0);" onclick="loadPage('user/index')" class="">Users</a></li>
				<li><a href="javascript: void(0);" onclick="loadPage('order/index')" class="">Orders</a></li>
				<li><a href="javascript: void(0);" onclick="loadPage('gallery/index')" class="">Banners</a></li>
                                <li><a href="javascript: void(0);" onclick="loadPage('promobanner/index')" class="">Promo Banners</a></li>
				<li><a href="javascript: void(0);" onclick="loadPage('creditor/index')" class="">Credits</a></li>
			</ul>
		</div>
		<div class="tabcontainer ieclass">
			<div id="sb1" class="tabcontent">
			
			</div>
			
			<div id="sb2" class="tabcontent">
			See the new scripts recently added to Dynamic Drive. <a href="http://www.dynamicdrive.com/new.htm">Click here</a>.
			</div>
			
			<div id="sb3" class="tabcontent">
			Original, practical <a href="http://www.dynamicdrive.com/style/">CSS codes and examples</a> such as CSS menus for your site.
			</div>		
		</div>
<div class="clear"></div>
<!--  start nav-outer -->
</div>
<!--  start nav-outer-repeat................................................... END -->
 
 <div class="clear"></div>
 
<!-- start content-outer -->
<div id="content-outer">
<!-- start content -->
<div id="loader_area"></div>
<div id="message_area"></div>
<div id="content">


<!--<div id="page-heading"><h1>Add product</h1></div>-->

<table border="0" width="100%" cellpadding="0" cellspacing="0">
<tr>
	<td>		
		<div id="bodyText">
		<?php
			include ("controller.php");
		?>
		</div>		
	</td>
</tr>
</table>
<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer -->

 

<div class="clear">&nbsp;</div>
    
<!-- start footer -->         
<div id="footer">
	<!--  start footer-left -->
	<div id="footer-left">
	 Copyright &copy; 2011 - 2012 <a href="http://www.officesupplies.lk" target="_blank">Office Supplies.</a> All rights reserved.</div>
	<!--  end footer-left -->
	<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->
</body>
</html>